package top.revery.api.api.user;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import top.revery.api.config.UserPageData;
import top.revery.api.entity.user.BaseUserWorks;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author denghao
 * @title
 * @package 网红作品
 * @date 2019/12/13 17:55
 */
@RequestMapping("/api_userWorks")
public interface IUserWorksApi {

    //保存网红
    @PostMapping("/save")
    BaseUserWorks save(@RequestBody BaseUserWorks baseUserWorks);

    //分页多条件查询所有
    @PostMapping("/getList")
    UserPageData getList(@RequestParam(value = "pageNum") int pageNum, @RequestParam(value = "pageSize")int pageSize,
                         @RequestBody Map map);

    @PostMapping("/delete")
    void delete(@RequestParam(value = "id") Long id);





}
